package cn.ml.sheJiMoShi.proxy.demo2;

public class Client {
    public static void main(String[] args) {
        //UserService userService = new UserServiceImpl();
        UserServiceImpl userService1 = new UserServiceImpl();
        userService1.add();
        //userService.add();
        System.out.println("***********使用代理***********");
        UserServiceProxy userService2 = new UserServiceProxy();
        userService2.setUserService(userService1);
        userService2.add();
        userService2.delete();
    }
}
